package com.module.business.entity;


import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengluqiang
 * @since 2019-03-04
 */
@Data
@Accessors(chain = true)
public class UserRoles extends Model<UserRoles> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String roleName;
    private String username;


    public static final String ID = "id";

    public static final String ROLE_NAME = "role_name";

    public static final String USERNAME = "username";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
